package com.manage.pojo.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 委托记录对象 cm_entrust_record
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Data
@TableName("cm_entrust_record")
public class CmEntrustRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 委托记录id */
    private Long id;

    /** 外部唯一id */
    private String publicId;

    /** 批次id */
    private Long batchId;

    /** 批次编号 */
    private String batchNum;

    /** 负责人id */
    private Long principalId;

    /** 承接人id */
    private Long contractorId;

    /** 操作人id（上传人） */
    private Long operatorId;

    /** 任务代理书id */
    private Long taskAgentBookId;

    /** 任务明细id */
    private Long taskDetailsId;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**更新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("batchId", getBatchId())
            .append("batchNum", getBatchNum())
            .append("principalId", getPrincipalId())
            .append("contractorId", getContractorId())
            .append("operatorId", getOperatorId())
            .append("taskAgentBookId", getTaskAgentBookId())
            .append("taskDetailsId", getTaskDetailsId())
            .append("uploadTime", getUploadTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
